﻿using System.Windows;
using System.Windows.Controls;
using TicTacToe.Core;

namespace TicTacToe.UI.Components
{
    partial class PlayerPanel : UserControl
    {
        Player currentPlayer;

        public Player CurrentPlayer
        {
            get { return currentPlayer; }
            set 
            {
                currentPlayer = value;
                DataContext = value;
            }
        }

        public void UpdatePanelForGameOver(Player winner)
        {
            Visibility = Visibility.Hidden;
        }

        public PlayerPanel()
        {
            InitializeComponent();
        }
    }
}
